
const install = (vm) => {
	return {
		listPrice:(params)=> vm.$u.post('/prize/list',params),
		listPrizeInventory:(params)=> vm.$u.post('/prize/listPrizeInventory',params),
		receivePrice:(params)=> vm.$u.post('/prize/receivePrice',params),
		listPrizeInstance:(params)=> vm.$u.post('/prizeInstance/listPrize',params),
		verifyPrize:(params)=> vm.$u.post('/prizeInstance/verifyPrize',params),
		getPrizeVoByPrizeCode:(params)=> vm.$u.post('/prizeInstance/getPrizeVoByPrizeCode',params),
		generatePrizeInstance:(prizeId,generateNum)=> vm.$u.get('/prizeInstance/generate?prizeId='+prizeId+'&generateNum='+generateNum)
	}
}

export default install